package org.cloud.jiangyouapi.clients;

import org.cloud.jiangyouapi.entity.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("jiangyou-user")
@RequestMapping("/api/user")
@Component
public interface UserClient {
    /**
     * 测试
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    UserDTO queryById(@PathVariable("id") String id);

}
